package com.github.pig.admin.service.attendance;

import com.baomidou.mybatisplus.service.IService;
import com.github.pig.admin.model.attendance.AttendanceRecord;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sxf
 * @since 2018-11-22
 */
public interface IAttendanceRecordService extends IService<AttendanceRecord> {
    /**
     * 获取该用户当日打卡数量
     * @param userName
     * @return
     */
    List<AttendanceRecord> getByUserForDay(String userName,String date);
    /**
     * 获取该用户当月打卡数量
     * @param userName
     * @return
     */
    List<AttendanceRecord> getByUserForMonth(String userName,String date);

}
